package com.lyloou.practice.dp.proxy;

/**
 * @author lyloou
 * @date 2020/05/29
 * @desc
 */
public class TestProxy {
    public static void main(String[] args) {
        IRentHouse iRentHouse = new IRentHouseImpl();
        IRentHouse proxy = (IRentHouse) ProxyFactory.getJdkProxy(iRentHouse);
        proxy.rentHouse();

        System.out.println("--------");

        proxy = (IRentHouse) ProxyFactory.getCglibProxy(iRentHouse);
        proxy.rentHouse();
    }
}
